//
//  COCOAFANMessageBoardView.h
//  CocoaFan
//
//  Created by Chen Xianan on 2009-03-28.
//  Copyright 2009 realazy.org. All rights reserved.
//

#import <Cocoa/Cocoa.h>

typedef enum {
	COCOAFAN_BOARDMESSAGE_NORMAL,
	COCOAFAN_BOARDMESSAGE_WARNING
} COCOAFAN_BOARDMESSAGE_TYPE;

@class YRKSpinningProgressIndicator;

@interface COCOAFANMessageBoardView : NSView {
	IBOutlet NSTextField *textField;
	IBOutlet YRKSpinningProgressIndicator *indicator;
	NSTimer *timer;
}

- (void)setMessage:(NSString *)message type:(COCOAFAN_BOARDMESSAGE_TYPE)type;
- (void)setMessage:(NSString *)message;
- (void)setWarningMessage:(NSString *)message;
- (void)show;
- (void)showWithIndicator;
- (void)hide;
- (void)scheduledHide:(NSTimeInterval)seconds;
- (IBAction)hide:(id)sender;

@end
